{extend name="base" /}
{block name="body"}
<div class="layui-card">    
    <div class="layui-card-body">
    <blockquote class="layui-elem-quote layui-text">
        文件管理：删除功能为<span class="text-danger">删除本地</span>文件，文件<span class="text-danger">删除</span>无法恢复。慎用删除功能
    </blockquote>
        <table class="layui-table layui-form" lay-skin="line">
            <thead>
                <tr>
                    <th>{$Think.lang.id}</th>
                    <th>{$Think.lang.username}</th>
                    <th>{$Think.lang.location}</th>
                    <th>{$Think.lang.img}</th>
                    <th>{$Think.lang.filename}</th>
                    <th>{$Think.lang.filesize}</th>
                    <th>{$Think.lang.CreateTime}</th>
                    <th>{$Think.lang.Handle}</th>
                </tr>
            </thead>
            <tbody>
                {volist name="list" id="v" empty="$empty"}
                <tr>
                    <td>{$i}</td>
                    <td>{$v.model}</td>
                    <td>{if $v.type}<span class="layui-badge layui-badge-green">阿里云{else}<span class="layui-badge layui-badge-red">本地{/if}</span></td>
                    <td><img src="{$v.url|default='__IMG__/voucher.png'}" width="40px"></td>
                    <td>{$v.filename}</td>
                    <td>{$v.filesize|format_bytes}</td>
                    <td>{$v.create_time|date='Y-m-d'}</td>
                    <td>
                      <button class="layui-btn layui-btn-danger layui-btn-xs ajax-del" data-title="{$Think.lang.drop}" data-url="{:url('del', ['id' => $v.id])}"><i class="fa fa-trash-o"></i>{$Think.lang.drop}</button>
                    </td>
                </tr>
                {/volist}
            </tbody>
        </table>
        <div class="page">{$list|raw}</div>
    </div>
</div>
{/block}
{block name="js"}
{/block}